Added diagnostic message when RuntimeError is raised inside XenStore.exists.
authoremellor@ewan <emellor@ewan>
Thu, 22 Sep 2005 16:50:29 +0000 (17:50 +0100)
committeremellor@ewan <emellor@ewan>
Thu, 22 Sep 2005 16:50:29 +0000 (17:50 +0100)
This is one of the first things to be used when xenstored starts up, so a
corrupted filesystem may manifest itself here.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/xenstore/xsnode.py

index 469ef5f536c738c9ab81212b3c690855adc326ac..817cff757a1bc5b943a0ca7060c47d3a6d87e5a0 100644 (file)
@@ -244,7 +244,9 @@ class XenStore:
             if ex.args[0] == errno.ENOENT:
                 return False
             else:
-                raise
+                raise RuntimeError(ex.args[0],
+                                   ex.args[1] +
+                                   (', in exists(%s)' % (str(path))))
 
     def mkdirs(self, path):
         if self.exists(path):